package com.example.blog_001.Mapper;

import com.example.blog_001.Entity.FriendLink;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface FriendLinkMapper {
    //查询所有友链
    List<FriendLink> listFriendLike();
    //根据友链博客地址查询是否重复
    FriendLink getFriendLink(String blogaddress);

    int saveFriendLink(FriendLink friendLink);

    FriendLink getFriendLinkById(Long id);

    int updateFriendLink(FriendLink friendLink);

    void deleteFriendLink(Long id);
}
